package com.example.service.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

//让务注册中心发现该服务，并注册该服务到服务注册中心中
@EnableEurekaClient
//扫描那些声明它们是假客户端的接口(通过FeignClient @FeignClient)
@EnableFeignClients(basePackages = "com.example.service.common.api")
@SpringBootApplication
public class Service1CallApplication {

    public static void main(String[] args) {
        SpringApplication.run(Service1CallApplication.class, args);
    }

}
